package cn.thinkluck.pattern.flyweight;


import lombok.AllArgsConstructor;
import lombok.ToString;

/**
 * 棋子享元类
 *
 * @Author liutao
 * @DateTime 2024/7/22 下午10:38
 */
@AllArgsConstructor
@ToString
public class ChessUnit {
    private Long id;
    // 棋名
    private String text;
    //颜色
    private Color color;

    public enum Color {
        RED, BLACK
    }
}
